﻿using Windows.SeedWork;

namespace Windows.WorkFlow.Domain
{
    public class FlowInstance : FullEntity<long>
    {
        public FlowInstance()
        {
            FormInstances = new HashSet<FormInstance>();
            Executions = new HashSet<Execution>();
        }
        public string CurrentNodeId { get; set; } = "";
        public string CurrentNodeName { get; set; } = "";
        public int Status { get; set; }
        public long FlowId { get; set; }
        public virtual Flow? Flow { get; set; }
        
        public virtual ICollection<FormInstance> FormInstances { get; set; }
        public virtual ICollection<Execution> Executions { get; set; }
    }
}
